package com.xiyu.service.vo.office.area.baseVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import jakarta.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 办公区 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class OfficeAreaBase {

    @Schema(description = "名称")
    @Size(max = 50, message = "名称长度不能超过50")
    private String name;

    @Schema(description = "分类ID")
    private Long areaClassId;

    @Schema(description = "权属登记情况")
    @Size(max = 255, message = "权属登记情况长度不能超过255")
    private String ownershipRegister;

    @Schema(description = "行政区划")
    @Size(max = 50, message = "行政区划长度不能超过50")
    private String administrativeDivision;

    @Schema(description = "详细地址")
    @Size(max = 255, message = "详细地址长度不能超过255")
    private String detailAddress;

    @Schema(description = "备注")
    @Size(max = 1024, message = "备注长度不能超过1024")
    private String remark;

    @Schema(description = "用地面积")
    @DecimalMax(value = "10000000000", message = "用地面积最大不能超过10000000000")
    private BigDecimal landArea;

    @Schema(description = "建筑面积")
    @DecimalMax(value = "10000000000", message = "建筑面积最大不能超过10000000000")
    private BigDecimal buildingArea;

    @Schema(description = "建设年代")
    @Size(max = 50, message = "建设年代长度不能超过50")
    private String buildingYears;

    @Schema(description = "是否租借")
    private Boolean isLease;

    @Schema(description = "办公用房建筑面积")
    @DecimalMax(value = "10000000000", message = "办公用房建筑面积最大不能超过10000000000")
    private BigDecimal officeBuildingArea;

    @Schema(description = "服务用房建筑面积")
    @DecimalMax(value = "10000000000", message = "服务用房建筑面积最大不能超过10000000000")
    private BigDecimal serviceBuildingArea;

    @Schema(description = "设备用房建筑面积")
    @DecimalMax(value = "10000000000", message = "设备用房建筑面积最大不能超过10000000000")
    private BigDecimal deviceBuildingArea;

    @Schema(description = "附属用房建筑面积")
    @DecimalMax(value = "10000000000", message = "附属用房建筑面积最大不能超过10000000000")
    private BigDecimal attachBuildingArea;

    @Schema(description = "技术业务用房建筑面积")
    @DecimalMax(value = "10000000000", message = "技术业务用房建筑面积最大不能超过10000000000")
    private BigDecimal technologyBuildingArea;

    @Schema(description = "经度")
    @Size(max = 50, message = "长度不能超过50")
    private String lng;

    @Schema(description = "纬度")
    @Size(max = 50, message = "长度不能超过50")
    private String lat;

}
